﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users.Master" AutoEventWireup="true" CodeBehind="OdberiPrijatel.aspx.cs" Inherits="sdamarketing.SocialNet.OdberiPrijatel" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="title1PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="text1PlaceHolder" runat="server">
 <table style="width:100%;">
    <tr>
        <td style="width: 171px; text-align: right; height: 15px;">
        </td>
        <td style="width: 210px; height: 15px;">
        </td>
        <td style="text-align: left; " rowspan="6">
                            <asp:Image ID="Image2" runat="server" Height="170px" 
                                ImageUrl="~/sliki/User.jpg" Width="170px" 
                ImageAlign="Left" />
            </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right; height: 26px;">
            <asp:Label ID="lblName" runat="server" Text="Име"></asp:Label>
        </td>
        <td style="width: 210px; height: 26px;">
            <asp:TextBox ID="TextBoxName" runat="server" Width="168px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right; height: 27px;">
            <asp:Label ID="lblUsername" runat="server" Text="Корисничко име"></asp:Label>
        </td>
        <td style="width: 210px; height: 27px;">
            <asp:TextBox ID="TextBoxUsername" runat="server" Width="168px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right;">
            <asp:Label ID="lblLastName" runat="server" Text="Презиме"></asp:Label>
        </td>
        <td style="width: 210px">
            <asp:TextBox ID="TextBoxLastName" runat="server" Width="168px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right;">
            &nbsp;</td>
        <td style="width: 210px">
            <asp:Button ID="SearchButton" runat="server" onclick="SearchButton_Click" 
                Text="Пребарај" Width="70px" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Label ID="lblSelectOne" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan="3">
        <hr />
            <asp:Panel ID="PanelUsersDetails" runat="server">
                <table style="width:100%;">
                </table>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                Text="Покажи пријатели" />
            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                Text="Затвори пријатели" />
            <br />
            <asp:Panel ID="Panel1" runat="server">
                <asp:Label ID="Label1" runat="server" Text="Листа на пријатели"></asp:Label>
                <br />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
        ForeColor="#333333" GridLines="None" 
    onrowdeleting="GridView1_RowDeleting" 
     >
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="UsernamePrijatel" HeaderText="Пријател" 
                SortExpression="UsernamePrijatel" />
                        <asp:CommandField DeleteText="Бриши" ShowDeleteButton="True" />
                    </Columns>
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </asp:Panel>
        </td>
    </tr>
</table>
    <asp:GridView ID="UsersGridView" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BorderColor="#0066FF" BorderStyle="Solid" 
        BorderWidth="1px" CellPadding="4" ForeColor="#333333" GridLines="None" 
        onpageindexchanging="UsersGridView_PageIndexChanging"
        onselectedindexchanged="UsersGridView_SelectedIndexChanged">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:BoundField DataField="firstName" HeaderText="Име">
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" />
            </asp:BoundField>
            <asp:BoundField DataField="lastName" HeaderText="Презиме">
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" />
            </asp:BoundField>
            <asp:BoundField DataField="username" HeaderText="User">
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" />
            </asp:BoundField>
            <asp:CommandField ButtonType="Image" SelectImageUrl="~/sliki/friend_add.png" 
                ShowSelectButton="True" />
        </Columns>
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#BDC7D2" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainTitle2PlaceHolder" runat="server">
    </asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="title2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="text2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="mainTitle1PlaceHolder">
                <h2 class="title">
                    &nbsp;&nbsp;твои пријатели</h2>
                
</asp:Content>

